<!-- 文字居中的弹窗 -->
<template>
  <div class='border_box' v-if="show">
    <div class="header">
      <div>{{title}}</div>
      <div class="right" @click="$emit('update:show',false)">
        <Icon type="ios-close-circle-outline" size="16" />
        关闭
      </div>
    </div>
    <div class=" content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import { Icon } from 'view-design';
export default {
  props: ['title', 'show'],
  data() {
    return {
    };
  },

  components: { Icon },

  computed: {},

  created() { },

  mounted() { },

  methods: {
  }
}

</script>
<style lang='less' scoped>
.border_box {
  .header {
    height: 30px;
    width: 100%;
    background: url("~@/assets/imgs/title_bg.png") top right no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: space-between;
    font-weight: bold;
    padding: 0 12px;
    color: #0df8ac;
    .right {
      font-size: 12px;
      color: #81e4c7;
      opacity: 0.5;
      cursor: pointer;
      display: flex;
      align-items: center;
    }
  }
  .content {
    border: 1p solid #333;
    background: rgba(13, 25, 39, 0.7);
    padding: 20px;
    min-width: 200px;
  }
}
</style>